package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/19
 * 盘点单项目
 */
@TableName("zbl_inventory_orderitem")
public class ErpInventoryOrderItem {

    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 商品ID
     */
    private int goodsId;

    /**
     * 盘点单ID
     */
    private int orderId;

    /**
     * 盘点数量
     */
    private int inventoryNum;

    /**
     * 真实数量
     */
    private int realNum;

    /**
     * 架位ID
     */
    private int whId;

    /**
     * 是否报损
     */
    private int loss;

    /**
     * 盘点价格
     */
    private BigDecimal inventoryPrice;

    /**
     * 真实单价
     */
    @TableField(exist = false)
    private BigDecimal realPrice;

    @TableField(exist = false)
    private ErpGoods goods;

    @TableField(exist = false)
    private ErpWarehouse warehouse;

    @TableField(exist = false)
    private int leaveNum;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(int inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    public int getRealNum() {
        return realNum;
    }

    public void setRealNum(int realNum) {
        this.realNum = realNum;
    }

    public BigDecimal getInventoryPrice() {
        return inventoryPrice;
    }

    public void setInventoryPrice(BigDecimal inventoryPrice) {
        this.inventoryPrice = inventoryPrice;
    }

    public BigDecimal getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(BigDecimal realPrice) {
        this.realPrice = realPrice;
    }

    public ErpGoods getGoods() {
        return goods;
    }

    public void setGoods(ErpGoods goods) {
        this.goods = goods;
    }

    public int getWhId() {
        return whId;
    }

    public void setWhId(int whId) {
        this.whId = whId;
    }

    public ErpWarehouse getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(ErpWarehouse warehouse) {
        this.warehouse = warehouse;
    }

    public int getLeaveNum() {
        return leaveNum;
    }

    public void setLeaveNum(int leaveNum) {
        this.leaveNum = leaveNum;
    }

    public int getLoss() {
        return loss;
    }

    public void setLoss(int loss) {
        this.loss = loss;
    }

    @Override
    public String toString() {
        return "ErpInventoryOrderItem{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", orderId=" + orderId +
                ", inventoryNum=" + inventoryNum +
                ", realNum=" + realNum +
                ", inventoryPrice=" + inventoryPrice +
                '}';
    }
}
